#ifndef WINDOW_H
 #define WINDOW_H

 #include <QMainWindow>
 #include <QUrl>
 #include <QWebElement>
#include <QWebView>

 class QTreeWidgetItem;

 #include "ui_window.h"

 class Window : public QMainWindow, private Ui::Window
 {
     Q_OBJECT

 public:
     Window(QWidget *parent = 0);
     void setUrl(const QUrl &url);
     QWebView *webView;
     int test;

 public slots:
     void on_webView_loadFinished();

 private:
     void examineChildElements(const QWebElement &parentElement,
                               QTreeWidgetItem *parentItem);
 };

 #endif
